﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Captch.aspx.cs" Inherits="Captch" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    
    <link href="jquery/jRating.jquery.css" rel="stylesheet" type="text/css" />
    <script src="jquery/jquery.js" type="text/javascript"></script>
    <script src="jquery/jRating.jquery.js" type="text/javascript"></script>
    <title></title>
    <script type="text/javascript">
        $(document).ready(function () {
            // simple jRating call
            //            $(".basic").jRating();
            // more complex jRating call
            $(".basic").jRating({
                step: true,
                length: 20, // nb of stars
                onSuccess: function () {
                    alert('Success : your rate has been saved :)');
                },
                decimalLength: 0 // number of decimal in the rate
            });
        });
</script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <!-- basic exemple -->
<div class="exemple">
<!-- in this exemple, 12 is the average and 1 is the id of the line to update in DB -->
<div class="basic" id="0_1"></div>
<!-- in this other exemple, 8 is the average and 2 is the id of the line to update in DB -->
<div class="basic" id="0_2"></div>
</div>
    </div>
    </form>
</body>
</html>
